package com.yang.mall.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yang.mall.entity.Product;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author CYJ
 * @data 2022/4/21
 * @apiNote
 **/
@Data
public class CreateProductDTO implements Serializable {

    @ApiModelProperty(value = "商品id")
    @TableId(value = "product_id", type = IdType.AUTO)
    private Long productId;

    @ApiModelProperty(value = "商品分类id")
    private Long sortId;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "商品编码")
    private String productCode;

    @ApiModelProperty(value = "缩略图")
    private String photoUrl;

    @ApiModelProperty(value = "规格")
    private String skuName;

    @ApiModelProperty(value = "默认值0( 0:未删除 1:逻辑删除)")
    private Integer delFlag;

    @ApiModelProperty(value = "条码")
    private String barCode;

    @ApiModelProperty(value = "0:下架  1：上架 ")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "排序")
    private Integer seq;

    @ApiModelProperty(value = "商品库存")
    private Integer stockNum;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "划线价格")
    private BigDecimal labelPrice;

    @ApiModelProperty(value = "成本价格")
    private BigDecimal costPrice;
}
